cmake_minimum_required(VERSION 3.10)




project(mpp_itc_display_interface)


#
#include_directories(/usr/local/include)
#include_directories( ${PROJECT_SOURCE_DIR}/common)
#target_link_libraries(${PROJECT_NAME} /usr/local/lib/librockchip_mpp.so)
#target_link_libraries(${PROJECT_NAME} /usr/local/lib/librockchip_vpu.so)


#target_link_libraries(${PROJECT_NAME} 
#                        /usr/local/lib/librockchip_mpp.so)
#target_link_libraries(${PROJECT_NAME} 
#                        /usr/local/lib/librockchip_vpu.so)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fpic")


add_compile_options(-DLINUX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -pthread")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUN_NEED_GL")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

include_directories(${PROJECT_SOURCE_DIR}/../common/rockchip/include)
include_directories(${PROJECT_SOURCE_DIR}/../common/rockchip/include/libdrm)
include_directories(${PROJECT_SOURCE_DIR}/../common/rockchip/rga)




file(GLOB_RECURSE Files *.h *.cpp )

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../libs)
add_library(${PROJECT_NAME} SHARED ${Files})
